package chapter13;

/**
 * @author : DuJiabao
 * @Date : 2021/2/21 10:28
 * @Project : thinking-in-java
 * @File : null.java
 * @Desc :
 */
public class IndexOfTest {
  public static void main(String[] args) {
    String s = "abcdefgbcd";
    System.out.println(s.indexOf("bcd"));
    System.out.println(s.lastIndexOf("bcd"));
  }
}
